Add -Werror to xenstore build and fix failure.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 5 Sep 2005 18:53:08 +0000 (18:53 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 5 Sep 2005 18:53:08 +0000 (18:53 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstore/Makefile
tools/xenstore/xenstored_domain.c

index f94bd59d9d1e156f61de2b22d98536199d4ce04f..13164f08d60f9918085713161ad5cce6f6d61d34 100644 (file)
@@ -8,7 +8,7 @@ INSTALL_PROG    = $(INSTALL) -m0755
 INSTALL_DIR     = $(INSTALL) -d -m0755
 
 PROFILE=#-pg
-BASECFLAGS=-Wall -W -g 
+BASECFLAGS=-Wall -W -g -Werror
 # Make gcc generate dependencies.
 BASECFLAGS += -Wp,-MD,.$(@F).d
 PROG_DEP = .*.d
index 807a62fff42bec30fac61da2261b5b850b5c65c2..e98a347a857dae6fbc7235c5f309b7be9dfa8201 100644 (file)
@@ -216,17 +216,6 @@ static int destroy_domain(void *_domain)
        return 0;
 }
 
-static struct domain *find_domain(u16 port)
-{
-       struct domain *i;
-
-       list_for_each_entry(i, &domains, list) {
-               if (i->port == port)
-                       return i;
-       }
-       return NULL;
-}
-
 /* We scan all domains rather than use the information given here. */
 void handle_event(int event_fd)
 {